/* 
 * File:   Cammer.hpp
 * Author: gustavo
 *
 * Created on August 29, 2012, 12:02 AM
 */

#ifndef CAMMER_HPP
#define	CAMMER_HPP

#include <gtkmm/window.h>

#include "../../gui/ImageView.hpp"
#include "../../gui/v4li/v4l_interface.hpp"

namespace imp {
	namespace app {

		class Cammer : public Gtk::Window {
			/////
		private: /*  */
			gui::ImageView iview;
			gui::V4LInterface v4li;
			unsigned char * rgb_data;
			int width, height;

		public: /* Constructors */
			Cammer();
			virtual ~Cammer();

		public: /* Methods */


		private:
			bool loop();
			void event_v4li_start(bool b);

		};

	}
}

#endif	/* CAMMER_HPP */

